package com.example.exam.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.exam.entity.pojo.Option;
import com.example.exam.mapper.OptionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhang
 */
@Service
public class OptionService extends ServiceImpl<OptionMapper, Option> {
    @Autowired
    private OptionMapper optionMapper;

    public Boolean insertOptionList(List<Option> options) {
        return optionMapper.insertOptionList(options) == 0;
    }
}
